﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheep_Breeding.Domain
{
    /// <summary>
    /// 栏位管理表
    /// </summary>
    public class Field_management
    {
        /// <summary>
        /// 主键/自增
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Field { get; set; }

        /// <summary>
        /// 栋舍管理外键
        /// </summary>
        public int BuildingId { get; set; }

        /// <summary>
        /// 栏位名称
        /// </summary>
        public string Field_Name { get; set; }

        /// <summary>
        /// 栏位编号前缀
        /// </summary>
        public string Prefix { get; set; }

        /// <summary>
        /// 栏位编号起始值
        /// </summary>
        public int Start_number { get; set; }

        /// <summary>
        /// 要生成的栏位数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 生成栏位区间（如1至N）
        /// </summary>
        public string Gen_range { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}
